package com.xiaoma.tpo.domain;

import java.io.Serializable;
import java.util.Comparator;

public class AdPosition implements Serializable , Comparator<AdPosition>{
	private static final long serialVersionUID = 506997220993197895L;
	private Integer id;
	private Integer position;
	private String name;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getPosition() {
		return position;
	}
	public void setPosition(Integer position) {
		this.position = position;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public int compare(AdPosition ap, AdPosition ap2) {
		if(ap.getPosition() >= ap2.getPosition()){
			return 1;
		}else{
			return -1;
		}
	}
	

}
